package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_msglog table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_msglog"
 */

public abstract class BaseCnMsglog  implements Serializable {

	public static String REF = "CnMsglog";
	public static String PROP_STATUS = "Status";
	public static String PROP_TYPE = "Type";
	public static String PROP_POSTPHONE = "Postphone";
	public static String PROP_CREATETIME = "Createtime";
	public static String PROP_GETPHONE = "Getphone";
	public static String PROP_CONTENT = "Content";
	public static String PROP_ID = "Id";


	// constructors
	public BaseCnMsglog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnMsglog (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String postphone;
	private java.lang.String getphone;
	private java.lang.String content;
	private java.lang.String type;
	private java.util.Date createtime;
	private java.lang.String status;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: POSTPHONE
	 */
	public java.lang.String getPostphone () {
		return postphone;
	}

	/**
	 * Set the value related to the column: POSTPHONE
	 * @param postphone the POSTPHONE value
	 */
	public void setPostphone (java.lang.String postphone) {
		this.postphone = postphone;
	}



	/**
	 * Return the value associated with the column: GETPHONE
	 */
	public java.lang.String getGetphone () {
		return getphone;
	}

	/**
	 * Set the value related to the column: GETPHONE
	 * @param getphone the GETPHONE value
	 */
	public void setGetphone (java.lang.String getphone) {
		this.getphone = getphone;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: TYPE
	 */
	public java.lang.String getType () {
		return type;
	}

	/**
	 * Set the value related to the column: TYPE
	 * @param type the TYPE value
	 */
	public void setType (java.lang.String type) {
		this.type = type;
	}



	/**
	 * Return the value associated with the column: CREATETIME
	 */
	public java.util.Date getCreatetime () {
		return createtime;
	}

	/**
	 * Set the value related to the column: CREATETIME
	 * @param createtime the CREATETIME value
	 */
	public void setCreatetime (java.util.Date createtime) {
		this.createtime = createtime;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnMsglog)) return false;
		else {
			com.lovejes.cuniao.domain.CnMsglog cnMsglog = (com.lovejes.cuniao.domain.CnMsglog) obj;
			if (null == this.getId() || null == cnMsglog.getId()) return false;
			else return (this.getId().equals(cnMsglog.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}